vcCommandPanelButton

Interface for a button to display in the command panel.

See in: Overview

Module: vcCore

Parent: vcObject

Children -

Referenced by: vcCommandPanel.Buttons, vcCommandPanel.createButton()

Properties

Learn how to use properties here. The properties are also inherited from the parent class.

NameTypeAccessDescription
IsEnabledBooleanRWGets or sets value defining if the button is enabled.
IsVisibleBooleanRWGets or sets value defining if the button is visible.
TextStringRWGets or sets text to display in the button.

Methods

Learn how to use methods here. The methods are also inherited from the parent class.

NameReturn TypeParametersDescription
setOnClickNoneCallable OR None clickHandlerSets the function to execute when the button is pressed.
See more
Parameters:
function (callable): The function to call when the button is pressed. By default, the command panel is closed after this function is called. Optionally, return False to indicate that the panel should remain open.